package com.ruoyi.task.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.convert.LongToDateDeserializer;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 测试任务查询
 */

public class DataTaskReq implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 测试任务ID
     */
    private Long dataTaskId;

    /**
     * 测试平板SN码
     */
    private String padSn;


    /**
     * 当前登录用户的部门ID
     */
    private Long deptId;

    /**
     * 当前登录用户的用户ID
     */
    private Long userId;

    /**
     * 当前登录的用户名称
     */
    private String userName;

    /**
     * 平板数据库中的任务ID
     */
    private Long id;

    /**
     * 任务类型
     */
    private String taskType;

    /**
     * 受检单位
     */
    private String shjdw;

    /**
     * 设备编号
     */
    private String shbbh;

    /**
     * 主检姓名
     */
    private String zhjxm;

    /**
     * 测试人员（采用&分割）
     */
    private String cshry;

    /**
     * 任务创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonDeserialize(using = LongToDateDeserializer.class)
    @Excel(name = "任务创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date taskCreateTime;

    /**
     * 删除标志（0代表存在 2代表删除）
     */
    private String delFlag;


    public Long getDataTaskId() {
        return dataTaskId;
    }

    public void setDataTaskId(Long dataTaskId) {
        this.dataTaskId = dataTaskId;
    }

    public String getPadSn() {
        return padSn;
    }

    public void setPadSn(String padSn) {
        this.padSn = padSn;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTaskType() {
        return taskType;
    }

    public void setTaskType(String taskType) {
        this.taskType = taskType;
    }

    public String getShjdw() {
        return shjdw;
    }

    public void setShjdw(String shjdw) {
        this.shjdw = shjdw;
    }

    public String getShbbh() {
        return shbbh;
    }

    public void setShbbh(String shbbh) {
        this.shbbh = shbbh;
    }

    public String getZhjxm() {
        return zhjxm;
    }

    public void setZhjxm(String zhjxm) {
        this.zhjxm = zhjxm;
    }

    public String getCshry() {
        return cshry;
    }

    public void setCshry(String cshry) {
        this.cshry = cshry;
    }

    public Date getTaskCreateTime() {
        return taskCreateTime;
    }

    public void setTaskCreateTime(Date taskCreateTime) {
        this.taskCreateTime = taskCreateTime;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }
}
